package com.geekjob1120.geekjob1120pay.service;

import com.geekjob1120.geekjob1120pay.modle.Pay;
import com.geekjob1120.geekjob1120pay.repository.PayRepository;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class PayOrderSevice {

    @Autowired
    private PayRepository payRepository;

    public Pay findPayByOrdId(String orderId){
        return payRepository.findByOrderId(orderId);
    }
}
